{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Flag of the Republic of Abkhazia.svg Abkhazia',\n",
       " 'Flag of Afghanistan (2013–2021).svg Afghanistan',\n",
       " 'Flag of South Africa.svg Afrika Selatan',\n",
       " 'Flag of the Central African Republic.svg Republik Afrika Tengah',\n",
       " 'Flag of the United Kingdom.svg Akrotiri dan Dhekelia',\n",
       " 'Flag of Albania.svg Albania',\n",
       " 'Flag of Algeria.svg Algeria',\n",
       " 'Flag of the United States.svg Amerika Syarikat',\n",
       " 'Flag of Andorra.svg Andorra',\n",
       " 'Flag of Angola.svg Angola',\n",
       " 'Flag of Antigua and Barbuda.svg Antigua dan Barbuda',\n",
       " 'Flag of Saudi Arabia.svg Arab Saudi',\n",
       " 'Flag of Argentina.svg Argentina',\n",
       " 'Flag of Armenia.svg Armenia',\n",
       " 'Flag of Australia.svg Australia',\n",
       " 'Flag of Austria.svg Austria',\n",
       " 'Flag of Azerbaijan.svg Azerbaijan',\n",
       " 'Flag of the Bahamas.svg Bahamas',\n",
       " 'Flag of Bahrain.svg Bahrain',\n",
       " 'Flag of Bangladesh.svg Bangladesh',\n",
       " 'Flag of Barbados.svg Barbados',\n",
       " 'Flag of the Netherlands.svg Belanda',\n",
       " 'Flag of Belarus.svg Belarus',\n",
       " 'Flag of Belgium.svg Belgium',\n",
       " 'Flag of Belize.svg Belize',\n",
       " 'Flag of Benin.svg Benin',\n",
       " 'Flag of Bhutan.svg Bhutan',\n",
       " 'Flag of Bolivia (state).svg Bolivia',\n",
       " 'Flag of Bonaire.svg Bonaire',\n",
       " 'Flag of Bosnia and Herzegovina.svg Bosnia dan Herzegovina',\n",
       " 'Flag of Botswana.svg Botswana',\n",
       " 'Flag of Brazil.svg Brazil',\n",
       " 'Flag of Brunei.svg Brunei Darussalam',\n",
       " 'Flag of Bulgaria.svg Bulgaria',\n",
       " 'Flag of Burkina Faso.svg Burkina Faso',\n",
       " 'Flag of Burundi.svg Burundi',\n",
       " 'Flag of Cameroon.svg Cameroon',\n",
       " 'Flag of Chad.svg Chad',\n",
       " 'Flag of Chile.svg Chile',\n",
       " \"Flag of the People's Republic of China.svg Republik Rakyat China\",\n",
       " 'Flag of the Republic of China.svg Republik China di Taiwan',\n",
       " 'Flag of Colombia.svg Colombia',\n",
       " 'Flag of the Comoros.svg Comoros',\n",
       " 'Flag of the Democratic Republic of the Congo.svg Republik Demokratik Congo',\n",
       " 'Flag of the Republic of the Congo.svg Republik Congo',\n",
       " 'Flag of the Cook Islands.svg Kepulauan Cook',\n",
       " 'Flag of Costa Rica.svg Costa Rica',\n",
       " \"Flag of Cote d'Ivoire.svg Côte d'Ivoire (Ivory Coast)\",\n",
       " 'Flag of Croatia.svg Croatia',\n",
       " 'Flag of Cuba.svg Cuba',\n",
       " 'Flag of Curaçao.svg Curaçao',\n",
       " 'Flag of Cyprus.svg Cyprus',\n",
       " 'Flag of the Turkish Republic of Northern Cyprus.svg Republik Turki Cyprus Utara',\n",
       " 'Flag of the Czech Republic.svg Republik Czech',\n",
       " 'Flag of Denmark.svg Denmark',\n",
       " 'Flag of Djibouti.svg Djibouti',\n",
       " 'Flag of Dominica.svg Dominika',\n",
       " 'Flag of the Dominican Republic.svg Republik Dominika',\n",
       " 'England',\n",
       " 'Flag of Ecuador.svg Ecuador',\n",
       " 'Flag of El Salvador.svg El Salvador',\n",
       " 'Flag of the United Arab Emirates.svg Emiriah Arab Bersatu',\n",
       " 'Flag of Eritrea.svg Eritrea',\n",
       " 'Flag of Estonia.svg Estonia',\n",
       " 'Flag of the Faroe Islands.svg Kepulauan Faroe',\n",
       " 'Flag of Fiji.svg Fiji',\n",
       " 'Flag of the Philippines.svg Filipina',\n",
       " 'Flag of Finland.svg Finland',\n",
       " 'Flag of Gabon.svg Gabon',\n",
       " 'Flag of The Gambia.svg Gambia',\n",
       " 'Flag of Georgia.svg Georgia',\n",
       " 'Flag of Ghana.svg Ghana',\n",
       " 'Flag of Grenada.svg Grenada',\n",
       " 'Flag of Guatemala.svg Guatemala',\n",
       " 'Flag of Guinea.svg Guinea',\n",
       " 'Flag of Guinea-Bissau.svg Guinea-Bissau',\n",
       " 'Flag of Equatorial Guinea.svg Guinea Khatulistiwa',\n",
       " 'Drapeau de la Guyane.svg Guiana Perancis',\n",
       " 'Flag of Guyana.svg Guyana',\n",
       " 'Flag of Ethiopia.svg Habsyah (Ethiopia)',\n",
       " 'Flag of Haiti.svg Haiti',\n",
       " 'Flag of Honduras.svg Honduras',\n",
       " 'Flag of Hungary.svg Hungary',\n",
       " 'Flag of Indonesia.svg Indonesia',\n",
       " 'Flag of Iraq.svg Iraq',\n",
       " 'Flag of Jamaica.svg Jamaika',\n",
       " 'Flag of Japan.svg Jepun',\n",
       " 'Flag of Germany.svg Jerman',\n",
       " 'Flag of Jordan.svg Jordan',\n",
       " 'Flag of Canada.svg Kanada',\n",
       " 'Flag of Kazakhstan.svg Kazakhstan',\n",
       " 'Flag of Cambodia.svg Kemboja',\n",
       " 'Flag of Kenya.svg Kenya',\n",
       " 'Flag of Kiribati.svg Kiribati',\n",
       " 'Flag of South Korea.svg Korea Selatan',\n",
       " 'Flag of North Korea.svg Korea Utara',\n",
       " 'Flag of Kosovo.svg Kosovo',\n",
       " 'Flag of Kuwait.svg Kuwait',\n",
       " 'Flag of Kyrgyzstan.svg Kyrgyzstan',\n",
       " 'Flag of Laos.svg Laos',\n",
       " 'Flag of Latvia.svg Latvia',\n",
       " 'Flag of Lesotho.svg Lesotho',\n",
       " 'Flag of Liberia.svg Liberia',\n",
       " 'Flag of Libya.svg Libya',\n",
       " 'Flag of Liechtenstein.svg Liechtenstein',\n",
       " 'Flag of Lithuania.svg Lithuania',\n",
       " 'Flag of Lebanon.svg Lubnan',\n",
       " 'Flag of Luxembourg.svg Luxembourg',\n",
       " 'Flag of Macedonia.svg Macedonia',\n",
       " 'Flag of Madagascar.svg Madagaskar',\n",
       " 'Flag of Morocco.svg Maghribi',\n",
       " 'Flag of Malawi.svg Malawi',\n",
       " 'Flag of Malaysia.svg Malaysia',\n",
       " 'Flag of Maldives.svg Maldives',\n",
       " 'Flag of Mali.svg Mali',\n",
       " 'Flag of Malta.svg Malta',\n",
       " 'Flag of the Marshall Islands.svg Kepulauan Marshall',\n",
       " 'Flag of Mauritania.svg Mauritania',\n",
       " 'Flag of Mauritius.svg Mauritius',\n",
       " 'Flag of Egypt.svg Mesir',\n",
       " 'Flag of Mexico.svg Mexico',\n",
       " 'Flag of Micronesia.svg Persekutuan Micronesia',\n",
       " 'Flag of Moldova.svg Moldova',\n",
       " 'Flag of Monaco.svg Monaco',\n",
       " 'Flag of Montenegro.svg Montenegro',\n",
       " 'Flag of Mongolia.svg Mongolia',\n",
       " 'Flag of Mozambique.svg Mozambique',\n",
       " 'Flag of Myanmar.svg Myanmar',\n",
       " 'Flag of Namibia.svg Namibia',\n",
       " 'Flag of Nauru.svg Nauru',\n",
       " 'Flag of Nepal.svg Nepal',\n",
       " 'Flag of New Zealand.svg New Zealand',\n",
       " 'Flag of Nicaragua.svg Nicaragua',\n",
       " 'Flag of Niger.svg Niger',\n",
       " 'Flag of Nigeria.svg Nigeria',\n",
       " 'Flag of Niue.svg Niue',\n",
       " 'Flag of Norway.svg Norway',\n",
       " 'Flag of Oman.svg Oman',\n",
       " 'Flag of South Ossetia.svg Ossetia Selatan',\n",
       " 'Flag of Pakistan.svg Pakistan',\n",
       " 'Flag of Palau.svg Palau',\n",
       " 'Flag of Palestine.svg Palestin',\n",
       " 'Flag of Panama.svg Panama',\n",
       " 'Flag of Papua New Guinea.svg Papua New Guinea',\n",
       " 'Flag of Paraguay.svg Paraguay',\n",
       " 'Flag of France.svg Perancis',\n",
       " 'Flag of Peru.svg Peru',\n",
       " 'Flag of Poland.svg Poland',\n",
       " 'Flag of Portugal.svg Portugal',\n",
       " 'Flag of Qatar.svg Qatar',\n",
       " 'Flag of Romania.svg Romania',\n",
       " 'Flag of Russia.svg Rusia',\n",
       " 'Flag of Rwanda.svg Rwanda',\n",
       " 'Flag of Western Sahara.svg Sahara Barat',\n",
       " 'Flag of Saint Kitts and Nevis.svg Saint Kitts dan Nevis',\n",
       " 'Flag of Saint Lucia.svg Saint Lucia',\n",
       " 'Flag of Saint Vincent and the Grenadines.svg Saint Vincent dan Grenadines',\n",
       " 'Flag of Samoa.svg Samoa',\n",
       " 'Flag of San Marino.svg San Marino',\n",
       " 'Flag of Sao Tome and Principe.svg São Tomé dan Príncipe',\n",
       " 'Flag of Scotland.svg Scotland',\n",
       " 'Flag of Senegal.svg Senegal',\n",
       " 'Flag of Spain.svg Sepanyol',\n",
       " 'Flag of Serbia.svg Serbia',\n",
       " 'Flag of the Seychelles.svg Seychelles',\n",
       " 'Flag of Sierra Leone.svg Sierra Leone',\n",
       " 'Flag of Singapore.svg Singapura',\n",
       " 'Flag of Slovakia.svg Slovakia',\n",
       " 'Flag of Slovenia.svg Slovenia',\n",
       " 'Flag of the Solomon Islands.svg Kepulauan Solomon',\n",
       " 'Flag of Somalia.svg Somalia',\n",
       " 'Flag of Somaliland.svg Somaliland',\n",
       " 'Flag of Sri Lanka.svg Sri Lanka',\n",
       " 'Flag of Sudan.svg Sudan',\n",
       " 'Flag of South Sudan.svg Sudan Selatan',\n",
       " 'Flag of Suriname.svg Suriname',\n",
       " 'Flag of Swaziland.svg Swaziland',\n",
       " 'Flag of Sweden.svg Sweden',\n",
       " 'Flag of Switzerland.svg Switzerland',\n",
       " 'Flag of the United Arab Republic.svg Syria',\n",
       " 'Flag of Tajikistan.svg Tajikistan',\n",
       " 'Flag of Cape Verde.svg Tanjung Verde',\n",
       " 'Flag of Tanzania.svg Tanzania',\n",
       " 'Flag of Thailand.svg Thailand',\n",
       " 'Flag of East Timor.svg Timor Leste',\n",
       " 'Flag of Togo.svg Togo',\n",
       " 'Flag of Tonga.svg Tonga',\n",
       " 'Flag of Transnistria.svg Transnistria',\n",
       " 'Flag of Trinidad and Tobago.svg Trinidad dan Tobago',\n",
       " 'Flag of Tunisia.svg Tunisia',\n",
       " 'Flag of Turkey.svg Turki',\n",
       " 'Flag of Turkmenistan.svg Turkmenistan',\n",
       " 'Flag of Tuvalu.svg Tuvalu',\n",
       " 'Flag of Uganda.svg Uganda',\n",
       " 'Flag of Ukraine.svg Ukraine',\n",
       " 'Flag of the United Kingdom.svg United Kingdom',\n",
       " '(memiliki Wilayah Luar Negeri dan Tanggungan Mahkota)',\n",
       " 'Flag of Uruguay.svg Uruguay',\n",
       " 'Flag of Uzbekistan.svg Uzbekistan',\n",
       " 'Flag of Vanuatu.svg Vanuatu',\n",
       " 'Flag of the Vatican City.svg Kota Vatican',\n",
       " 'Flag of Venezuela.svg Venezuela',\n",
       " 'Flag of Vietnam.svg Vietnam',\n",
       " 'Flag of Yemen.svg Yaman',\n",
       " 'Flag of Greece.svg Yunani',\n",
       " 'Flag of Zambia.svg Zambia',\n",
       " 'Flag of Zimbabwe.svg Zimbabwe']"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "x = \"\"\"\n",
    "A\n",
    "Flag of the Republic of Abkhazia.svg Abkhazia\n",
    "Flag of Afghanistan (2013–2021).svg Afghanistan\n",
    "Flag of South Africa.svg Afrika Selatan\n",
    "Flag of the Central African Republic.svg Republik Afrika Tengah\n",
    "Flag of the United Kingdom.svg Akrotiri dan Dhekelia\n",
    "Flag of Albania.svg Albania\n",
    "Flag of Algeria.svg Algeria\n",
    "Flag of the United States.svg Amerika Syarikat\n",
    "Flag of Andorra.svg Andorra\n",
    "Flag of Angola.svg Angola\n",
    "Flag of Antigua and Barbuda.svg Antigua dan Barbuda\n",
    "Flag of Saudi Arabia.svg Arab Saudi\n",
    "Flag of Argentina.svg Argentina\n",
    "Flag of Armenia.svg Armenia\n",
    "Flag of Australia.svg Australia\n",
    "Flag of Austria.svg Austria\n",
    "Flag of Azerbaijan.svg Azerbaijan\n",
    "B\n",
    "Flag of the Bahamas.svg Bahamas\n",
    "Flag of Bahrain.svg Bahrain\n",
    "Flag of Bangladesh.svg Bangladesh\n",
    "Flag of Barbados.svg Barbados\n",
    "Flag of the Netherlands.svg Belanda\n",
    "Flag of Belarus.svg Belarus\n",
    "Flag of Belgium.svg Belgium\n",
    "Flag of Belize.svg Belize\n",
    "Flag of Benin.svg Benin\n",
    "Flag of Bhutan.svg Bhutan\n",
    "Flag of Bolivia (state).svg Bolivia\n",
    "Flag of Bonaire.svg Bonaire\n",
    "Flag of Bosnia and Herzegovina.svg Bosnia dan Herzegovina\n",
    "Flag of Botswana.svg Botswana\n",
    "Flag of Brazil.svg Brazil\n",
    "Flag of Brunei.svg Brunei Darussalam\n",
    "Flag of Bulgaria.svg Bulgaria\n",
    "Flag of Burkina Faso.svg Burkina Faso\n",
    "Flag of Burundi.svg Burundi\n",
    "C\n",
    "Flag of Cameroon.svg Cameroon\n",
    "Flag of Chad.svg Chad\n",
    "Flag of Chile.svg Chile\n",
    "Flag of the People's Republic of China.svg Republik Rakyat China\n",
    "Flag of the Republic of China.svg Republik China di Taiwan\n",
    "Flag of Colombia.svg Colombia\n",
    "Flag of the Comoros.svg Comoros\n",
    "Flag of the Democratic Republic of the Congo.svg Republik Demokratik Congo\n",
    "Flag of the Republic of the Congo.svg Republik Congo\n",
    "Flag of the Cook Islands.svg Kepulauan Cook\n",
    "Flag of Costa Rica.svg Costa Rica\n",
    "Flag of Cote d'Ivoire.svg Côte d'Ivoire (Ivory Coast)\n",
    "Flag of Croatia.svg Croatia\n",
    "Flag of Cuba.svg Cuba\n",
    "Flag of Curaçao.svg Curaçao\n",
    "Flag of Cyprus.svg Cyprus\n",
    "Flag of the Turkish Republic of Northern Cyprus.svg Republik Turki Cyprus Utara\n",
    "Flag of the Czech Republic.svg Republik Czech\n",
    "D\n",
    "Flag of Denmark.svg Denmark\n",
    "Flag of Djibouti.svg Djibouti\n",
    "Flag of Dominica.svg Dominika\n",
    "Flag of the Dominican Republic.svg Republik Dominika\n",
    "E\n",
    "England\n",
    "Flag of Ecuador.svg Ecuador\n",
    "Flag of El Salvador.svg El Salvador\n",
    "Flag of the United Arab Emirates.svg Emiriah Arab Bersatu\n",
    "Flag of Eritrea.svg Eritrea\n",
    "Flag of Estonia.svg Estonia\n",
    "F\n",
    "Flag of the Faroe Islands.svg Kepulauan Faroe\n",
    "Flag of Fiji.svg Fiji\n",
    "Flag of the Philippines.svg Filipina\n",
    "Flag of Finland.svg Finland\n",
    "G\n",
    "Flag of Gabon.svg Gabon\n",
    "Flag of The Gambia.svg Gambia\n",
    "Flag of Georgia.svg Georgia\n",
    "Flag of Ghana.svg Ghana\n",
    "Flag of Grenada.svg Grenada\n",
    "Flag of Guatemala.svg Guatemala\n",
    "Flag of Guinea.svg Guinea\n",
    "Flag of Guinea-Bissau.svg Guinea-Bissau\n",
    "Flag of Equatorial Guinea.svg Guinea Khatulistiwa\n",
    "Drapeau de la Guyane.svg Guiana Perancis\n",
    "Flag of Guyana.svg Guyana\n",
    "H\n",
    "Flag of Ethiopia.svg Habsyah (Ethiopia)\n",
    "Flag of Haiti.svg Haiti\n",
    "Flag of Honduras.svg Honduras\n",
    "Flag of Hungary.svg Hungary\n",
    "I\n",
    "Flag of Indonesia.svg Indonesia\n",
    "Flag of Iraq.svg Iraq\n",
    "J\n",
    "Flag of Jamaica.svg Jamaika\n",
    "Flag of Japan.svg Jepun\n",
    "Flag of Germany.svg Jerman\n",
    "Flag of Jordan.svg Jordan\n",
    "K\n",
    "Flag of Canada.svg Kanada\n",
    "Flag of Kazakhstan.svg Kazakhstan\n",
    "Flag of Cambodia.svg Kemboja\n",
    "Flag of Kenya.svg Kenya\n",
    "Flag of Kiribati.svg Kiribati\n",
    "Flag of South Korea.svg Korea Selatan\n",
    "Flag of North Korea.svg Korea Utara\n",
    "Flag of Kosovo.svg Kosovo\n",
    "Flag of Kuwait.svg Kuwait\n",
    "Flag of Kyrgyzstan.svg Kyrgyzstan\n",
    "L\n",
    "Flag of Laos.svg Laos\n",
    "Flag of Latvia.svg Latvia\n",
    "Flag of Lesotho.svg Lesotho\n",
    "Flag of Liberia.svg Liberia\n",
    "Flag of Libya.svg Libya\n",
    "Flag of Liechtenstein.svg Liechtenstein\n",
    "Flag of Lithuania.svg Lithuania\n",
    "Flag of Lebanon.svg Lubnan\n",
    "Flag of Luxembourg.svg Luxembourg\n",
    "M\n",
    "Flag of Macedonia.svg Macedonia\n",
    "Flag of Madagascar.svg Madagaskar\n",
    "Flag of Morocco.svg Maghribi\n",
    "Flag of Malawi.svg Malawi\n",
    "Flag of Malaysia.svg Malaysia\n",
    "Flag of Maldives.svg Maldives\n",
    "Flag of Mali.svg Mali\n",
    "Flag of Malta.svg Malta\n",
    "Flag of the Marshall Islands.svg Kepulauan Marshall\n",
    "Flag of Mauritania.svg Mauritania\n",
    "Flag of Mauritius.svg Mauritius\n",
    "Flag of Egypt.svg Mesir\n",
    "Flag of Mexico.svg Mexico\n",
    "Flag of Micronesia.svg Persekutuan Micronesia\n",
    "Flag of Moldova.svg Moldova\n",
    "Flag of Monaco.svg Monaco\n",
    "Flag of Montenegro.svg Montenegro\n",
    "Flag of Mongolia.svg Mongolia\n",
    "Flag of Mozambique.svg Mozambique\n",
    "Flag of Myanmar.svg Myanmar\n",
    "N\n",
    "Flag of Namibia.svg Namibia\n",
    "Flag of Nauru.svg Nauru\n",
    "Flag of Nepal.svg Nepal\n",
    "Flag of New Zealand.svg New Zealand\n",
    "Flag of Nicaragua.svg Nicaragua\n",
    "Flag of Niger.svg Niger\n",
    "Flag of Nigeria.svg Nigeria\n",
    "Flag of Niue.svg Niue\n",
    "Flag of Norway.svg Norway\n",
    "O\n",
    "Flag of Oman.svg Oman\n",
    "Flag of South Ossetia.svg Ossetia Selatan\n",
    "P\n",
    "Flag of Pakistan.svg Pakistan\n",
    "Flag of Palau.svg Palau\n",
    "Flag of Palestine.svg Palestin\n",
    "Flag of Panama.svg Panama\n",
    "Flag of Papua New Guinea.svg Papua New Guinea\n",
    "Flag of Paraguay.svg Paraguay\n",
    "Flag of France.svg Perancis\n",
    "Flag of Peru.svg Peru\n",
    "Flag of Poland.svg Poland\n",
    "Flag of Portugal.svg Portugal\n",
    "Q\n",
    "Flag of Qatar.svg Qatar\n",
    "R\n",
    "Flag of Romania.svg Romania\n",
    "Flag of Russia.svg Rusia\n",
    "Flag of Rwanda.svg Rwanda\n",
    "S\n",
    "Flag of Western Sahara.svg Sahara Barat\n",
    "Flag of Saint Kitts and Nevis.svg Saint Kitts dan Nevis\n",
    "Flag of Saint Lucia.svg Saint Lucia\n",
    "Flag of Saint Vincent and the Grenadines.svg Saint Vincent dan Grenadines\n",
    "Flag of Samoa.svg Samoa\n",
    "Flag of San Marino.svg San Marino\n",
    "Flag of Sao Tome and Principe.svg São Tomé dan Príncipe\n",
    "Flag of Scotland.svg Scotland\n",
    "Flag of Senegal.svg Senegal\n",
    "Flag of Spain.svg Sepanyol\n",
    "Flag of Serbia.svg Serbia\n",
    "Flag of the Seychelles.svg Seychelles\n",
    "Flag of Sierra Leone.svg Sierra Leone\n",
    "Flag of Singapore.svg Singapura\n",
    "Flag of Slovakia.svg Slovakia\n",
    "Flag of Slovenia.svg Slovenia\n",
    "Flag of the Solomon Islands.svg Kepulauan Solomon\n",
    "Flag of Somalia.svg Somalia\n",
    "Flag of Somaliland.svg Somaliland\n",
    "Flag of Sri Lanka.svg Sri Lanka\n",
    "Flag of Sudan.svg Sudan\n",
    "Flag of South Sudan.svg Sudan Selatan\n",
    "Flag of Suriname.svg Suriname\n",
    "Flag of Swaziland.svg Swaziland\n",
    "Flag of Sweden.svg Sweden\n",
    "Flag of Switzerland.svg Switzerland\n",
    "Flag of the United Arab Republic.svg Syria\n",
    "T\n",
    "Flag of Tajikistan.svg Tajikistan\n",
    "Flag of Cape Verde.svg Tanjung Verde\n",
    "Flag of Tanzania.svg Tanzania\n",
    "Flag of Thailand.svg Thailand\n",
    "Flag of East Timor.svg Timor Leste\n",
    "Flag of Togo.svg Togo\n",
    "Flag of Tonga.svg Tonga\n",
    "Flag of Transnistria.svg Transnistria\n",
    "Flag of Trinidad and Tobago.svg Trinidad dan Tobago\n",
    "Flag of Tunisia.svg Tunisia\n",
    "Flag of Turkey.svg Turki\n",
    "Flag of Turkmenistan.svg Turkmenistan\n",
    "Flag of Tuvalu.svg Tuvalu\n",
    "U\n",
    "Flag of Uganda.svg Uganda\n",
    "Flag of Ukraine.svg Ukraine\n",
    "Flag of the United Kingdom.svg United Kingdom\n",
    "(memiliki Wilayah Luar Negeri dan Tanggungan Mahkota)\n",
    "Flag of Uruguay.svg Uruguay\n",
    "Flag of Uzbekistan.svg Uzbekistan\n",
    "V\n",
    "Flag of Vanuatu.svg Vanuatu\n",
    "Flag of the Vatican City.svg Kota Vatican\n",
    "Flag of Venezuela.svg Venezuela\n",
    "Flag of Vietnam.svg Vietnam\n",
    "Y\n",
    "Flag of Yemen.svg Yaman\n",
    "Flag of Greece.svg Yunani\n",
    "Z\n",
    "Flag of Zambia.svg Zambia\n",
    "Flag of Zimbabwe.svg Zimbabwe\n",
    "\n",
    "\"\"\"\n",
    "x = x.split('\\n')\n",
    "x = [i for i in x if len(i) > 1]\n",
    "x = [i]\n",
    "x"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Abkhazia',\n",
       " 'Afghanistan',\n",
       " 'Afrika Selatan',\n",
       " 'Akrotiri dan Dhekelia',\n",
       " 'Albania',\n",
       " 'Algeria',\n",
       " 'Amerika Syarikat',\n",
       " 'Andorra',\n",
       " 'Angola',\n",
       " 'Antigua dan Barbuda',\n",
       " 'Arab Saudi',\n",
       " 'Argentina',\n",
       " 'Armenia',\n",
       " 'Australia',\n",
       " 'Austria',\n",
       " 'Azerbaijan',\n",
       " 'Bahamas',\n",
       " 'Bahrain',\n",
       " 'Bangladesh',\n",
       " 'Barbados',\n",
       " 'Belanda',\n",
       " 'Belarus',\n",
       " 'Belgium',\n",
       " 'Belize',\n",
       " 'Benin',\n",
       " 'Bhutan',\n",
       " 'Bolivia',\n",
       " 'Bonaire',\n",
       " 'Bosnia dan Herzegovina',\n",
       " 'Botswana',\n",
       " 'Brazil',\n",
       " 'Brunei Darussalam',\n",
       " 'Bulgaria',\n",
       " 'Burkina Faso',\n",
       " 'Burundi',\n",
       " 'Cameroon',\n",
       " 'Chad',\n",
       " 'Chile',\n",
       " 'Colombia',\n",
       " 'Comoros',\n",
       " 'Costa Rica',\n",
       " 'Croatia',\n",
       " 'Cuba',\n",
       " 'Curaçao',\n",
       " 'Cyprus',\n",
       " \"Côte d'Ivoire (Ivory Coast)\",\n",
       " 'Denmark',\n",
       " 'Djibouti',\n",
       " 'Dominika',\n",
       " 'Ecuador',\n",
       " 'El Salvador',\n",
       " 'Emiriah Arab Bersatu',\n",
       " 'England',\n",
       " 'Eritrea',\n",
       " 'Estonia',\n",
       " 'Fiji',\n",
       " 'Filipina',\n",
       " 'Finland',\n",
       " 'Gabon',\n",
       " 'Gambia',\n",
       " 'Georgia',\n",
       " 'Ghana',\n",
       " 'Grenada',\n",
       " 'Guatemala',\n",
       " 'Guiana Perancis',\n",
       " 'Guinea',\n",
       " 'Guinea Khatulistiwa',\n",
       " 'Guinea-Bissau',\n",
       " 'Guyana',\n",
       " 'Habsyah (Ethiopia)',\n",
       " 'Haiti',\n",
       " 'Honduras',\n",
       " 'Hungary',\n",
       " 'Indonesia',\n",
       " 'Iraq',\n",
       " 'Jamaika',\n",
       " 'Jepun',\n",
       " 'Jerman',\n",
       " 'Jordan',\n",
       " 'Kanada',\n",
       " 'Kazakhstan',\n",
       " 'Kemboja',\n",
       " 'Kenya',\n",
       " 'Kepulauan Cook',\n",
       " 'Kepulauan Faroe',\n",
       " 'Kepulauan Marshall',\n",
       " 'Kepulauan Solomon',\n",
       " 'Kiribati',\n",
       " 'Korea Selatan',\n",
       " 'Korea Utara',\n",
       " 'Kosovo',\n",
       " 'Kota Vatican',\n",
       " 'Kuwait',\n",
       " 'Kyrgyzstan',\n",
       " 'Laos',\n",
       " 'Latvia',\n",
       " 'Lesotho',\n",
       " 'Liberia',\n",
       " 'Libya',\n",
       " 'Liechtenstein',\n",
       " 'Lithuania',\n",
       " 'Lubnan',\n",
       " 'Luxembourg',\n",
       " 'Macedonia',\n",
       " 'Madagaskar',\n",
       " 'Maghribi',\n",
       " 'Malawi',\n",
       " 'Malaysia',\n",
       " 'Maldives',\n",
       " 'Mali',\n",
       " 'Malta',\n",
       " 'Mauritania',\n",
       " 'Mauritius',\n",
       " 'Mesir',\n",
       " 'Mexico',\n",
       " 'Moldova',\n",
       " 'Monaco',\n",
       " 'Mongolia',\n",
       " 'Montenegro',\n",
       " 'Mozambique',\n",
       " 'Myanmar',\n",
       " 'Namibia',\n",
       " 'Nauru',\n",
       " 'Nepal',\n",
       " 'New Zealand',\n",
       " 'Nicaragua',\n",
       " 'Niger',\n",
       " 'Nigeria',\n",
       " 'Niue',\n",
       " 'Norway',\n",
       " 'Oman',\n",
       " 'Ossetia Selatan',\n",
       " 'Pakistan',\n",
       " 'Palau',\n",
       " 'Palestin',\n",
       " 'Panama',\n",
       " 'Papua New Guinea',\n",
       " 'Paraguay',\n",
       " 'Perancis',\n",
       " 'Persekutuan Micronesia',\n",
       " 'Peru',\n",
       " 'Poland',\n",
       " 'Portugal',\n",
       " 'Qatar',\n",
       " 'Republik Afrika Tengah',\n",
       " 'Republik China di Taiwan',\n",
       " 'Republik Congo',\n",
       " 'Republik Czech',\n",
       " 'Republik Demokratik Congo',\n",
       " 'Republik Dominika',\n",
       " 'Republik Rakyat China',\n",
       " 'Republik Turki Cyprus Utara',\n",
       " 'Romania',\n",
       " 'Rusia',\n",
       " 'Rwanda',\n",
       " 'Sahara Barat',\n",
       " 'Saint Kitts dan Nevis',\n",
       " 'Saint Lucia',\n",
       " 'Saint Vincent dan Grenadines',\n",
       " 'Samoa',\n",
       " 'San Marino',\n",
       " 'Scotland',\n",
       " 'Senegal',\n",
       " 'Sepanyol',\n",
       " 'Serbia',\n",
       " 'Seychelles',\n",
       " 'Sierra Leone',\n",
       " 'Singapura',\n",
       " 'Slovakia',\n",
       " 'Slovenia',\n",
       " 'Somalia',\n",
       " 'Somaliland',\n",
       " 'Sri Lanka',\n",
       " 'Sudan',\n",
       " 'Sudan Selatan',\n",
       " 'Suriname',\n",
       " 'Swaziland',\n",
       " 'Sweden',\n",
       " 'Switzerland',\n",
       " 'Syria',\n",
       " 'São Tomé dan Príncipe',\n",
       " 'Tajikistan',\n",
       " 'Tanjung Verde',\n",
       " 'Tanzania',\n",
       " 'Thailand',\n",
       " 'Timor Leste',\n",
       " 'Togo',\n",
       " 'Tonga',\n",
       " 'Transnistria',\n",
       " 'Trinidad dan Tobago',\n",
       " 'Tunisia',\n",
       " 'Turki',\n",
       " 'Turkmenistan',\n",
       " 'Tuvalu',\n",
       " 'Uganda',\n",
       " 'Ukraine',\n",
       " 'United Kingdom',\n",
       " 'Uruguay',\n",
       " 'Uzbekistan',\n",
       " 'Vanuatu',\n",
       " 'Venezuela',\n",
       " 'Vietnam',\n",
       " 'Yaman',\n",
       " 'Yunani',\n",
       " 'Zambia',\n",
       " 'Zimbabwe']"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r = []\n",
    "for i in x:\n",
    "    r.append(i.split('.svg ')[-1])\n",
    "    \n",
    "r = [i for i in r if i[0] not in '()']\n",
    "sorted(r)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
